#pragma once
#ifndef __CONSOLE_EVENTS_H
#define __CONSOLE_EVENTS_H
#include <windows.h>
#include "Subject.h"

class ConsoleEvents : public Subject
{
private:
	ConsoleEvents() : d1(0),d2(0),mx(0),my(0),first_second(true),bexit(false) {Initalize();}
	HANDLE Initalize();
	
public:
	int mx,my;
	bool bexit;
	bool first_second;
	int d1,d2;
	static ConsoleEvents * console_instance;
	static ConsoleEvents * GetInstance()
	{
		if (console_instance==NULL)
			console_instance = new ConsoleEvents();
		return console_instance;
	}

	void static Finalize();

};

ConsoleEvents *Events();

#endif
